package pe.com.upc.edu.rtt;

public class ReservarAsientosServicesSoapProxy implements pe.com.upc.edu.rtt.ReservarAsientosServicesSoap {
  private String _endpoint = null;
  private pe.com.upc.edu.rtt.ReservarAsientosServicesSoap reservarAsientosServicesSoap = null;
  
  public ReservarAsientosServicesSoapProxy() {
    _initReservarAsientosServicesSoapProxy();
  }
  
  public ReservarAsientosServicesSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initReservarAsientosServicesSoapProxy();
  }
  
  private void _initReservarAsientosServicesSoapProxy() {
    try {
      reservarAsientosServicesSoap = (new pe.com.upc.edu.rtt.ReservarAsientosServicesLocator()).getReservarAsientosServicesSoap();
      if (reservarAsientosServicesSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)reservarAsientosServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)reservarAsientosServicesSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (reservarAsientosServicesSoap != null)
      ((javax.xml.rpc.Stub)reservarAsientosServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.upc.edu.rtt.ReservarAsientosServicesSoap getReservarAsientosServicesSoap() {
    if (reservarAsientosServicesSoap == null)
      _initReservarAsientosServicesSoapProxy();
    return reservarAsientosServicesSoap;
  }
  
  public pe.com.upc.edu.rtt.ReservaAsiento reservarAsiento(java.lang.String uuid, int evento, int[] asientos, java.lang.String entidadBancaria) throws java.rmi.RemoteException{
    if (reservarAsientosServicesSoap == null)
      _initReservarAsientosServicesSoapProxy();
    return reservarAsientosServicesSoap.reservarAsiento(uuid, evento, asientos, entidadBancaria);
  }
  
  public pe.com.upc.edu.rtt.ReservaAsiento getOperacionLineaPorTicket(java.lang.String ticket) throws java.rmi.RemoteException{
    if (reservarAsientosServicesSoap == null)
      _initReservarAsientosServicesSoapProxy();
    return reservarAsientosServicesSoap.getOperacionLineaPorTicket(ticket);
  }
  
  public pe.com.upc.edu.rtt.Pago registrarPagoReserva(int operacion) throws java.rmi.RemoteException{
    if (reservarAsientosServicesSoap == null)
      _initReservarAsientosServicesSoapProxy();
    return reservarAsientosServicesSoap.registrarPagoReserva(operacion);
  }
  
  
}